#define _CRT_SECURE_NO_WARNINGS 1
#include "list.h"


int main()
{
	//ListNode* list = ListCreate();
	//ListPushBack(list, 1);
	//ListPushBack(list, 2);
	//ListPushBack(list, 3);
	//ListPushBack(list, 4);
	//ListPopBack(list);
	//ListPrint(list);
	//ListPopFront(list);
	//ListPrint(list);
	//ListPushFront(list, 10);
	//ListPrint(list);
	//ListPopFront(list);
	//ListPopFront(list);
	//ListPopFront(list);
	//ListPopFront(list);
	//ListPopFront(list);
	ListNode* list = ListCreate();
	ListPushBack(list, 1);
	ListPushBack(list, 2);
	ListPushBack(list, 3);
	ListPushBack(list, 4);

	ListNode* pos = ListFind(list, 2);
	ListErase(pos);
	ListPrint(list);




	return 0;
}